from PySide6.QtWidgets import QHBoxLayout, QLabel  # type: ignore
from PySide6.QtGui import QFont  # type: ignore


class TopBarWidget(QHBoxLayout):
    def __init__(self):
        super().__init__()

        # 设置布局间距
        self.setSpacing(15)

        # 创建并设置标题标签
        self.title_label = QLabel("批量输出为图片")
        title_font = QFont()
        title_font.setPointSize(16)
        title_font.setBold(True)
        self.title_label.setFont(title_font)

        # 添加标题到布局并设置伸缩项
        self.addWidget(self.title_label)
        self.addStretch(1)
